import React, { Component } from 'react';
import {render} from 'react-dom';
import { withStyles } from 'material-ui/styles';

const styles = theme => ({
    webviewStyle:{
        height:667,
    }
  });

class Webview extends Component{
    constructor(props){
        super(props);
    }
    componentDidMount(){
        this.props.loadUrl();
    }
    render(){
        const { classes } = this.props;
        return (
            <webview src={this.props.src} className={classes.webviewStyle} ></webview>
        );
    }
}
//export default Webview;
export default withStyles(styles)(Webview);
